// 系统业务验证规则
import * as RuleUtils from './utils_rules'

export const SysUserRules = {
    username: [RuleUtils.getRequired({
        label: '用户名'
    })],
    password: RuleUtils.getRule('pwd'),
    realname: [RuleUtils.getMax({label:'真实姓名', max:10})],
    phone: RuleUtils.getRule('mobile'),
    email: RuleUtils.getRule('email'),
    remark: [RuleUtils.getMax({label:'备注信息', max:100})]
}

export const SysRoleRules ={
    name:[
        RuleUtils.getRequired({label: '角色名称'}),
        RuleUtils.getMax({label:'角色名称', max:15})
    ],
    code:[
        RuleUtils.getRequired({label: '角色编码'}),
        RuleUtils.getMax({label:'角色编码', max:15})
    ],
    description:[
        RuleUtils.getMax({label:'角色说明', max:100})
    ]
}
